package com.sc.study.ar.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sc.study.ar.mapper.ScListenSubjectRegisterMapper;
import com.sc.study.ar.domain.ScListenSubjectRegister;
import com.sc.study.ar.service.IScListenSubjectRegisterService;

/**
 * 听课登记Service业务层处理
 * 
 * @author sc
 * @date 2022-03-14
 */
@Service
public class ScListenSubjectRegisterServiceImpl implements IScListenSubjectRegisterService 
{
    @Autowired
    private ScListenSubjectRegisterMapper scListenSubjectRegisterMapper;

    /**
     * 查询听课登记
     * 
     * @param id 听课登记主键
     * @return 听课登记
     */
    @Override
    public ScListenSubjectRegister selectScListenSubjectRegisterById(Long id)
    {
        return scListenSubjectRegisterMapper.selectScListenSubjectRegisterById(id);
    }

    /**
     * 查询听课登记列表
     * 
     * @param scListenSubjectRegister 听课登记
     * @return 听课登记
     */
    @Override
    public List<ScListenSubjectRegister> selectScListenSubjectRegisterList(ScListenSubjectRegister scListenSubjectRegister)
    {
        return scListenSubjectRegisterMapper.selectScListenSubjectRegisterList(scListenSubjectRegister);
    }

    /**
     * 新增听课登记
     * 
     * @param scListenSubjectRegister 听课登记
     * @return 结果
     */
    @Override
    public int insertScListenSubjectRegister(ScListenSubjectRegister scListenSubjectRegister)
    {
        return scListenSubjectRegisterMapper.insertScListenSubjectRegister(scListenSubjectRegister);
    }

    /**
     * 修改听课登记
     * 
     * @param scListenSubjectRegister 听课登记
     * @return 结果
     */
    @Override
    public int updateScListenSubjectRegister(ScListenSubjectRegister scListenSubjectRegister)
    {
        return scListenSubjectRegisterMapper.updateScListenSubjectRegister(scListenSubjectRegister);
    }

    /**
     * 批量删除听课登记
     * 
     * @param ids 需要删除的听课登记主键
     * @return 结果
     */
    @Override
    public int deleteScListenSubjectRegisterByIds(Long[] ids)
    {
        return scListenSubjectRegisterMapper.deleteScListenSubjectRegisterByIds(ids);
    }

    /**
     * 删除听课登记信息
     * 
     * @param id 听课登记主键
     * @return 结果
     */
    @Override
    public int deleteScListenSubjectRegisterById(Long id)
    {
        return scListenSubjectRegisterMapper.deleteScListenSubjectRegisterById(id);
    }
}
